package com.wcgksoft.common.util.getdata;

import javafx.util.Callback;

/**
 * <pre>
 *     @author  : FlySand
 *     @e-mail  : 1156183505@qq.com
 *     @time    : 2019/5/8.
 *     @desc    : log打印
 * </pre>
 */
public class Log {
    static Callback logCallback;

    public static void print(Object object) {
        System.out.println(object);
        if (logCallback != null) {
            logCallback.call(object);
        }
    }

    public static void init(Callback callback) {
        logCallback = callback;
    }
}
